package sef.test.service;

import java.util.List;

import junit.framework.TestCase;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import sef.domain.EmployeeDetail;
import sef.interfaces.service.EmployeeDetailsService;
import sef.interfaces.service.SearchService;

public class SearchEmployeeDetail extends TestCase {
	private EmployeeDetailsService service;
	
	public void setUp(){
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:repository-config.xml");
		service = (EmployeeDetailsService)context.getBean("detailsService");
		
	}
	
	public void testListemployees(){
		EmployeeDetail result = service.getEmployeeDetails(2); // Augusto deve terminar e mudar o retorno do metodo
		assertNotNull(result);
		assertTrue(result != null);
		
	}
}
